package mest.service.Modeling.Impl;

import mest.dao.Modeling.IdeviceFileDao;
import mest.entity.device_file;
import mest.service.Modeling.IdeviceFileService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Description
 * @auther Machenike
 * @create 2019-11-16 2:31
 */
@Service
public class deviceFileServiceImpl implements IdeviceFileService {


    @Resource
    private IdeviceFileDao idfd;

    @Override
    public int insertDeviceFileType(device_file ct) {
        try {
            return idfd.insertDeviceFileType(ct);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return 0;
    }

    @Override
    public int selectCount() {
        return idfd.selectCount();
    }

    @Override
    public List<device_file> findDeviceFilePage(int index, int pageSize) {
        return idfd.findDeviceFilePage((index-1)*pageSize,pageSize);
    }
}
